<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title><fmt:message key="policyDetail.heading"/></title>
	    <link rel="stylesheet" type="text/css" media="screen" href="${ctxPath}/css/form.css">
		<v:javascript formName="policy" staticJavascript="false"/>
	 	<script type="text/javascript" src="${ctxPath}/js/validator.jsp"></script>
  </head>
  <body>
	  	<div class="post">
			<div class="story">
				<h3><fmt:message key="policyDetail.heading"/></h3>
				<ul>功能介绍
					<li>[TODO]</li>
				</ul>
			</div>
		</div>
 		<div id="form-outer">
 			<div class="content">
 				<form:form method="post" id="policy" onsubmit="return validatePolicy(this);" commandName="policy" action="editPolicy.do">	
						<form:hidden path="policyId"/>					
			<p>
 				<label>航空公司</label>
				<form:input id="flightCode" path="flightCode"/>一条政策只能对应一个航空公司，只支持航空公司二字码输入，如:CA 
 				<form:errors path="flightCode" cssClass="fieldError" />
			</p>
			<p>
 				<label>政策代码</label>
				<form:input id="policyCode" path="policyCode"/>
 				<form:errors path="policyCode" cssClass="fieldError" />
			</p>
			<p>
 				<label>起飞机场</label>
				<form:input id="dpt" path="dpt"/>只支持一个起飞机场，输入只支持机场三字码，如PEK 
 				<form:errors path="dpt" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.arr"/></label>
				<form:input id="arr" path="arr"/>
 				<form:errors path="arr" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.flightNumLimit"/></label>
				<form:input id="flightNumLimit" path="flightNumLimit"/>
 				<form:errors path="flightNumLimit" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.flightCondition"/></label>
				<form:input id="flightCondition" path="flightCondition"/>
 				<form:errors path="flightCondition" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.daycondition"/></label>
				<form:input id="daycondition" path="daycondition"/>
 				<form:errors path="daycondition" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.cabin"/></label>
				<form:input id="cabin" path="cabin"/>
 				<form:errors path="cabin" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.discountType"/></label>
				<form:input id="discountType" path="discountType"/>
 				<form:errors path="discountType" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.discountValue"/></label>
				<form:input id="discountValue" path="discountValue"/>
 				<form:errors path="discountValue" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.returnPoint"/></label>
				<form:input id="returnPoint" path="returnPoint"/>
 				<form:errors path="returnPoint" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.returnPrice"/></label>
				<form:input id="returnPrice" path="returnPrice"/>
 				<form:errors path="returnPrice" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.startdateTicket"/></label>
				<form:input id="startdateTicket" path="startdateTicket"/>
 				<form:errors path="startdateTicket" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.enfdateTicket"/></label>
				<form:input id="enfdateTicket" path="enfdateTicket"/>
 				<form:errors path="enfdateTicket" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.startDate"/></label>
				<form:input id="startDate" path="startDate"/>
 				<form:errors path="startDate" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.endDate"/></label>
				<form:input id="endDate" path="endDate"/>
 				<form:errors path="endDate" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.beforeValidDay"/></label>
				<form:input id="beforeValidDay" path="beforeValidDay"/>
 				<form:errors path="beforeValidDay" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.backNote"/></label>
				<form:input id="backNote" path="backNote"/>
 				<form:errors path="backNote" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.cabinNote"/></label>
				<form:input id="cabinNote" path="cabinNote"/>
 				<form:errors path="cabinNote" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.status"/></label>
				<form:input id="status" path="status"/>
 				<form:errors path="status" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.autoTicket"/></label>
				<form:input id="autoTicket" path="autoTicket"/>
 				<form:errors path="autoTicket" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.costType"/></label>
				<form:input id="costType" path="costType"/>
 				<form:errors path="costType" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.costPrice"/></label>
				<form:input id="costPrice" path="costPrice"/>
 				<form:errors path="costPrice" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.proxyPrice"/></label>
				<form:input id="proxyPrice" path="proxyPrice"/>
 				<form:errors path="proxyPrice" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.backPrice"/></label>
				<form:input id="backPrice" path="backPrice"/>
 				<form:errors path="backPrice" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.kType"/></label>
				<form:input id="kType" path="kType"/>
 				<form:errors path="kType" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.checkCycleTime"/></label>
				<form:input id="checkCycleTime" path="checkCycleTime"/>
 				<form:errors path="checkCycleTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.autoCheckOverTime"/></label>
				<form:input id="autoCheckOverTime" path="autoCheckOverTime"/>
 				<form:errors path="autoCheckOverTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.manualCheckOverTime"/></label>
				<form:input id="manualCheckOverTime" path="manualCheckOverTime"/>
 				<form:errors path="manualCheckOverTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.downDiscount"/></label>
				<form:input id="downDiscount" path="downDiscount"/>
 				<form:errors path="downDiscount" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.allCabin"/></label>
				<form:input id="allCabin" path="allCabin"/>
 				<form:errors path="allCabin" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.canPay"/></label>
				<form:input id="canPay" path="canPay"/>
 				<form:errors path="canPay" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.needPnr"/></label>
				<form:input id="needPnr" path="needPnr"/>
 				<form:errors path="needPnr" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.shared"/></label>
				<form:input id="shared" path="shared"/>
 				<form:errors path="shared" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="policy.pata"/></label>
				<form:input id="pata" path="pata"/>
 				<form:errors path="pata" cssClass="fieldError" />
			</p>
 				 		<div class="last">
							<label>&nbsp;</label>
							<input name="submit" type="submit" onclick="bCancel=false" value=" 保存 " class="save"/>
							&nbsp;
							<input name="cancel" type="submit" onclick="bCancel=true" value=" 取消 " class="cancel"/>
						</div>
						
					</form:form>
 			
 			</div>
 		</div>
		
  </body>
</html>